package com.eastedu.config.feign;

import com.eastedu.interceptor.CustomFeignHeaderInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * The type Feign client config.
 * @author zhangzhishuai
 */
@Configuration
public class FeignClientConfig {

    /**
     * Custom header interceptor custom header interceptor.
     *
     * @return the custom header interceptor
     */
    @Bean
    public CustomFeignHeaderInterceptor customHeaderInterceptor() {
        return new CustomFeignHeaderInterceptor();
    }
}